package com.whstudio.util.mvc.data.sql;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import com.whstudio.util.xml.IDocument;

public interface ICommonSql extends ISql{
	public enum SQL_TYPES {INSERT,UPDATE,DELETE,SELECT,UNDEFINED};
	public String getSql();
	public List<IParameter> getParameters();
	public String getTable();
	public SQL_TYPES getSqlType();
	public IDocument executeSql(Connection connection) throws SQLException;
	public IDocument getResultDocument()throws SQLException;
}
